<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt"  prefix="c"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Attendance Report</title>
<link rel="stylesheet" href="css/jquery/theme/jquery-ui-1.9.1.custom.css"/>
 	<link rel="stylesheet" href="css/college.css"/> 
 <script src="js/jquery/jquery-1.8.2.js"></script>
 <script src="js/jquery/jquery-ui-1.9.1.custom.js"></script>

 	<style>
		div.ui-datepicker{
			font-size:12px;
		}
	</style>
 
</head>

<body>
<div  id="options" align="right">
			<a href="attendancesearchform.htm"  id="back"> Back </a> 
			<a href="iservicehome.htm" id="home">Home</a> 
			<a href="j_spring_security_logout" id="logout">Logout</a> 
</div>
<h2 align="center" style="margin-top:5px;"> Attendance Report of ${branch} - ${year} - ${section}</h2>
<form:form action="generateexcel.htm">
<%request.getSession().setAttribute("attendanceList", request.getAttribute("attendanceList")); %> 


<table align="center" id="title" border="0" cellspacing="5" cellpadding="5" width="100%">
	<thead>
		<tr>
			<td align="left">Date: ${date}</td>
			<td align="left">Hour: ${hour}</td>
			<td align="left">Subject: ${attendanceList[0].subject}</td>
			<td align="left" >Faculty: ${attendanceList[0].faculty}</td>
			<td align="left">No.of Absentees: ${attendanceList.size()}</td>
			
		</tr>
		
	</thead>
</table>
<br />
<table  border="1" align="center" cellpadding="5" id="report" >
	
  <tr>
  	<th  scope="col">S.No</th>
    <th  scope="col">Hallticket No</th>
    <th  scope="col">Name</th>
    
    <th  scope="col">Attendance</th>
    <th  scope="col">Parent Mobile</th>
  </tr>
  <c:forEach items="${attendanceList}" var="attendance" varStatus="i"> 
  <tr>
  	<td align="center">${i.count}&nbsp;</td>
    <td align="center">${attendance.id.student.htno}&nbsp;</td>
    <td align="justify">${attendance.id.student.name}&nbsp;</td>
    
    <td align="center">${attendance.attendance}&nbsp;</td>
     <td align="center">${attendance.id.student.contactDetailses.iterator().next().parentMobile1}&nbsp;</td>
  </tr>
  </c:forEach>
  
</table>
<p></p>
<div align="center">

<input type="submit" value="Generate Excel Report"/>

</div>



</form:form>
<p align="center">&nbsp;</p>
<script src="js/college.js"></script>

</body>
</html>
